package com.kulian.Signalling.distribution.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kulian.Signalling.distribution.mode.App;
import com.kulian.Signalling.distribution.query.AppPageQuery;
import com.kulian.Signalling.distribution.vo.AppPageVO;
import com.kulian.Signalling.distribution.vo.AppViewModel;
import com.kulian.Signalling.distribution.mode.Package;


import java.util.List;


public interface AppService extends IService<App> {



    public App saves(com.kulian.Signalling.distribution.mode.App app);


    public List<AppViewModel> findAll();

    /**
     * 用户分页列表
     *
     * @return {@link IPage <UserPageVO>} 用户分页列表
     */
    IPage<AppPageVO> getAppPage(AppPageQuery queryParams);


    public AppViewModel getById(String appID) ;


    public com.kulian.Signalling.distribution.mode.App getByPackage(Package aPackage);


    public void deleteById(String id) ;

    /**
     * 通过 code 和 packageId 查询
     * @param code
     * @param packageId
     * @return
     */

    public AppViewModel findByCode(String code, String packageId);
}
